package cn.spring.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DepartmentQuery {
    //当前页面
    private Integer currentPage;
    //每页条数
    private Integer pageSize;
    //查询的条件;
    private String  keyword;
    public Integer getStart(){
        return (currentPage-1)*pageSize;
    }

}
